import java.io.PrintWriter;
import java.util.HashMap;

public class StringNode extends Node {
	public String value;

	public StringNode(String value) {
		this.value = value;
	}

	public Node getChildren() {
		return null;
	}

	public String getValue() {
		System.out.print(value + " ");
		return this.value;
	}

	public void print(PrintWriter pw) {
		pw.println("Leaf name: " + value);
	}

	@Override
	public String translate(HashMap<String, PrintWriter> pws, String condition, SymbolTable st,
			String parent) {
		String key = st.getStack().get(1);
		PrintWriter pw = pws.get(key);
		// TODO Auto-generated method stub
		return null;
	}
}
